import { computed } from 'vue'
import store from '@/store/index'

export default (Vue) => {
  /**自定义按钮权限指令 */
  Vue.directive('qrcode', {
    mounted(el, binding) {
      if (!binding.value) {
        return
      }
      new QRCode(el,{
        text:  binding.value,
        width: '100',
        height: '100'
      });
    },
  })

}
